package com.gbei.center.oauth.mapper;

import com.gbei.center.model.OpenApp;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;
import tk.mybatis.mapper.common.Mapper;

/**
 * @Description: TODO
 * @author xiechengguang
 * @date 2019年2月15日
 */
@Component
public interface OpenAPPMapper extends Mapper<OpenApp> {
	/**
	 * 通过clientId查询接入的客户端详情
	 * @param clientId clientId
	 * @return AuthClientDetails
	 */
	@Select("select * from t_open_app where `status` = 1 and open_app_id = #{clientId}")
	OpenApp selectByClientId(@Param("clientId") String clientId);

}
